import request from "@/utils/request";

export enum ThirdApis{
    getOssUploadToken="/third/oss/uploadToken"
}

/**
 * 获得 oss 上传凭证
 *
 * @param key 文件名
 * @param dir 上传的目录
 */
export const getOssUploadToken = (key:string, dir:string) => {
    return request.get({
        url: ThirdApis.getOssUploadToken,
        params: {
            key: key,
            dir: dir
        }
    })
}
